package Unidad4;

public class SimpleDelayThread extends Thread {

	public void run() {
		 
		while(1==1) {
			try {
                  
								
				Thread.sleep(5000);// 5000 = 5 segundos
				
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			System.out.println("Recomenzar");
		}
	}
}